//
//  Define.h
//  MMairs
//
//  Created by dongguozheng on 2017/2/22.
//  Copyright © 2017年 dongguozheng. All rights reserved.
//

#ifndef Define_h
#define Define_h
#define MIPHONE6_WIDTH        375
#define MIPHONE6PLUS_WIDTh    414
#define MIPHONE5_WIDTH        320
//屏幕的尺寸
#define MSCREEN_BOUNDS       ([UIScreen mainScreen].bounds)
#define MSCREEN_SIZE         ([UIScreen mainScreen].bounds.size)
#define MSCREEN_WIDTH        ([UIScreen mainScreen].bounds.size.width)
#define MSCREEN_HEIGHT       ([UIScreen mainScreen].bounds.size.height)
#define SCALE_WIDTH           ([UIScreen mainScreen].bounds.size.width/375)
#define SCALE_HEIGHT         ([UIScreen mainScreen].bounds.size.height/667)
//masonry
#define MAS_SHORTHAND //use Masonry without the 'mas_' prefix
#define MAS_SHORTHAND_GLOBALS //enable auto-boxing for default syntax

#define RGB(x,y,z) [UIColor colorWithRed:(x/255.0) green:(y/255.0) blue:(z/255.0) alpha:1]
#define BUTTON_FONT_PX(v)   [[UIScreen mainScreen] bounds].size.width >= 414 ? [UIFont systemFontOfSize:(v * [UIScreen mainScreen].bounds.size.width/375 / 2.0f)] :[UIFont systemFontOfSize:([UIScreen mainScreen].bounds.size.width/375 / 2.0f)]//适配plus字体大小

#endif /* Define_h */
